﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace C_初级教程
{
    /// <summary>
    /// 密封类
    /// 密封类(sealed)防止别人继承，密封类与抽象类刚好相反
    /// 抽象类(abstract)是作为父类让人继承的
    /// </summary>
    public sealed class SealedStudy 
    {


    }

    public class xiaoyu : SealedStudy//由此发现密封类不可以被继承
    { 
    
    }
}
